package service.impl;

import dao.IUserDao;
import dao.impl.UserDaoImpl;
import entity.Users;
import service.IUserService;

public class UserService implements IUserService {
    IUserDao iud=new UserDaoImpl();

    @Override
    public int register(String uname, String pwd) {
        return iud.register(uname, pwd);
    }

    @Override
    public Users login(String uname, String pwd) {
        return iud.login(uname, pwd);
    }

    @Override
    public Users getUid(String name) {
        return iud.getUid(name);
    }
}
